package JUnit;

import org.junit.*;

import Model.Universe;

public class BenUniverseTest {

	/**
	 * inRange(int) method test.
	 * tests min and max possible fuel values of ship
	 * @throws Exception if method is not successful
	 */
	@Test
	public void testInRange()
		throws Exception { //if error arrises, therefore method fails
		Universe testCase = new Universe(); // randomly generated universe
		int fuelSize = 1; //less than min ship fuel capacity

		testCase.inRange(fuelSize);
		
		fuelSize = 50; //more than max ship fuel capacity
		
		testCase.inRange(fuelSize);
		
		fuelSize = 200; //bigger than universe
		
		testCase.inRange(fuelSize);
	}
}

